/**
 * Created by guojianyu on 2015/11/11.
 */
var myApp = angular.module('myApp', ['ngRoute']);
myApp.config(function ($routeProvider, $httpProvider) {
    $routeProvider.when('/welcome', {
     templateUrl: 'welcome'
     });
     $routeProvider.otherwise({redirectTo: '/welcome'});
});
/**=========================================================
 * Module: Notify
 *js notify.js
 =========================================================*/
var myApp =angular.module('myApp').service('Notify', [function(){
    this.success = function(message){
        $.notify(message,
            {status: 'success'});
    }
    this.error = function(message){
        $.notify(message,
            {status: 'danger'});
    }
    this.warning = function(message){
        $.notify(message,
            {status: 'warning'});
    }
}]);
myApp.controller('navbarController',function($scope){
    $scope.return=function() {
        window.location.href = "/web/"
    }
})

